import {request, writeLog} from "@/libs/core.js"
import { Message } from 'element-ui'
/**
获取商品列表数据
****************************************************************/
const getList = async(args) => {
  const data = await request({url:'/mall/entity/dolist', data:args, method:'post'});
  if (data && data.code == 0 ) {
    return data;
  }
  return false;
};

const doSave = async(args) => {
	const data = await request({url:'/mall/entity/dosave', data:args, method:'post'});
	if(data && data.code == 0){
		Message({message: '信息编辑成功', type: 'success', duration: 3 * 1000});
		return true;
	}
  return false;
};

export default {
	getList,doSave
};